import axios from "@/utils/request";
import qs from "qs";
export default {
  //新闻通知、不良行为、注意事项
  get_news_list(payload) {
    payload.contentDisplay=0
    return axios({
      url: "ms/cms/content/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  get_news_by_id(parameter) {
    return axios({
      url: "ms/cms/content/get.do?id=" + `${parameter}`,
      method: "GET",
    });
  },
  //新闻通知、不良行为——上一篇
  get_news_pre_list(payload) {
    return axios({
      url: "ms/cms/content/querypre.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //新闻通知、不良行为——下一篇
  get_news_next_list(payload) {
    return axios({
      url: "ms/cms/content/querynext.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //新闻通知(通知公告)、不良行为——文件
  get_news_file_list(parameter) {
    return axios({
      url: "ms/mdiy/model/data.do?modelId=45&linkId=" + `${parameter}`,
      method: "GET",
    });
  },

  //信用评价,从业单位_信用评价
  get_credit_list(payload){
    return axios({
      url: "ms/shuili/xypj/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
   //项目信息_基本信息
   get_baseinfo_list(payload){
    payload.isPass=true
    return axios({
      url: "ms/shuili/jsxmjbxx/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  get_basedinfo_by_id(parameter) {
    return axios({
      url: "ms/shuili/jsxmjbxx/get.do?id=" + `${parameter}`,
      method: "GET",
    });
  },
  //项目信息_招标信息
  get_bidinfo_list(payload){
    payload.isPass=true
    return axios({
      url: "ms/shuili/zbxx/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },

  get_bidinfo_by_id(parameter) {
    return axios({
      url: "ms/shuili/zbxx/get.do?id=" + `${parameter}`,
      method: "GET",
    });
  },
   //项目信息_中标公示
   get_winbid_list(payload){
    payload.switchShzt=true
    return axios({
      url: "ms/shuili/zbgs/listsec.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  get_winbid_by_id(parameter) {
    return axios({
      url: "ms/shuili/zbgs/getsec.do?id=" + `${parameter}`,
      method: "GET",
    });
  },
  //项目信息_事故信息记录
  get_xmsgclgk_list(payload){
    return axios({
      url: "ms/shuili/xmsgclgk/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  get_xmsgclgk_by_id(parameter) {
    return axios({
      url: "ms/shuili/xmsgclgk/get.do?id=" + `${parameter}`,
      method: "GET",
    });
  },
  //项目信息_质量信息管理
  get_swjszl_list(payload){
    return axios({
      url: "ms/shuili/swjszl/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  get_swjszl_by_id(parameter) {
    return axios({
      url: "ms/shuili/swjszl/get.do?id=" + `${parameter}`,
      method: "GET",
    });
  },
  //举报投诉_办件情况公开
  get_report_public_list(payload){
    return axios({
      url: "ms/shuili/jbtsTwo/ispublic.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //举报投诉_办件查询
  get_report_personal_list(payload){
    return axios({
      url: "ms/shuili/jbtsTwo/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //举报投诉_保存新增举报投诉_公共工程类和其他、饮水安全类
  save_report(payload){
    return axios({
      url: "ms/shuili/jbtsTwo/save.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
   //举报投诉_保存新增举报投诉_饮水安全类
   save_report_one(payload){
    return axios({
      url: "ms/shuili/jbtsTwoqsaq/save.do ",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  get_report_by_id(parameter) {
    return axios({
      url: "ms/shuili/jbtsTwo/get.do?id=" + `${parameter}`,
      method: "GET",
    });
  },
 //联系方式
 get_lxfs() {
  return axios({
    url: "ms/mdiy/model/data.do?modelId=46&linkId=276",
    method: "GET",
  });
},

  //首页_3张公告图片
  get_banner_list(payload){
    return axios({
      url: "ms/shuili/bannerManage/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //网站信息
  get_foot_webinfo(payload){
    return axios({
      url: "ms/shuili/webInfo/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },

  //首页_友情链接
  get_friendLink_list(payload){
      return axios({
        url: "ms/shuili/friendsLinks/listall.do",
        method: "POST",
        data: qs.stringify(payload),
      });
    },
  //从业单位_列表、从业单位_基本信息
  get_unit_list(payload){
    return axios({
      url: "ms/shuili/cydwjbxx/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  get_unit_by_id(parameter) {
    return axios({
      url: "ms/shuili/cydwjbxx/get.do?id=" + `${parameter}`,
      method: "GET",
    });
  },
   //从业单位_资质信息
   get_unitZzxx_list(payload){
    return axios({
      url: "ms/shuili/cydwzzxx/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //从业单位_工程绩效
  get_unitGcjx_list(payload){
    return axios({
      url: "ms/shuili/cydwgcjx/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //从业单位_信用评价
  // get_unitXypj_list(payload){
  //   return axios({
  //     url: "ms/shuili/xypj/list.do",
  //     method: "POST",
  //     data: qs.stringify(payload),
  //   });
  // },
  //从业单位_良好行为记录_单位获奖表
  get_unitLhxwjl_dwhj_list(payload){
    return axios({
      url: "ms/shuili/cydwdwhjb/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
   //从业单位_良好行为记录_个人获奖表
  get_unitLhxwjl_grhj_list(payload){
    return axios({
      url: "ms/shuili/cydwlhjlgrhjb/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //从业单位_良好行为记录_单位社会贡献奖
  get_unitLhxwjl_dwshgx_list(payload){
    return axios({
      url: "ms/shuili/cydwdwshgxj/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //从业单位_不良好行为记录
  get_unitBlxwjl_list(payload){
    return axios({
      url: "ms/shuili/cydwbljl/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //从业单位_人员信息_企业执业人员
  get_unit_ryxx_zy_list(payload){
    return axios({
      url: "ms/shuili/jbxx/listzy.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //从业单位_人员信息_企业职称人员
  get_unit_ryxx_zc_list(payload){
    return axios({
      url: "ms/shuili/jbxx/listzc.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //人员基本信息
  get_ryxx_list(payload){
    return axios({
      url: "ms/shuili/jbxx/listsec.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  get_ryxx_by_id(parameter) {
    return axios({
      url: "ms/shuili/jbxx/getsec.do?id=" + `${parameter}`,
      method: "GET",
    });
  },

   //从业人员左边菜单信息
   get_ryxx_categary_list(payload){
    return axios({
      url: "ms/shuili/jbxx/listcategary.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //执业资格信息
  get_ryxx_zyzgxx_list(payload){
    return axios({
      url: "ms/shuili/zyzgxx/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //良好行为记录
  get_ryxx_lhjl_list(payload){
    return axios({
      url: "ms/shuili/lhjl/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },
  //不良行为记录
  get_ryxx_bljl_list(payload){
    return axios({
      url: "ms/shuili/bljl/list.do",
      method: "POST",
      data: qs.stringify(payload),
    });
  },

   //首页4个汇总数据
   get_listtatal_list(){
    return axios({
      url: "ms/shuili/jbxx/listtatal",
      method: "POST",
      // data: qs.stringify(payload),
    });
  },
  //字典
  get_dict(payload){
    return axios({
      url: "/ms/shuili/xypj/dict.do",
      method: "GET",
      // data: qs.stringify(payload),
    });
  },
};
